package com.longma.server.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

@Data
public class InspectionPlanDTO {

    @ApiModelProperty(value = "首次工作日期")
    @NotNull(message = "首次工作日期不能為空")
    private LocalDateTime firstDate;

    @ApiModelProperty(value = "下次工作日期")
    private LocalDateTime nextDate;

    @ApiModelProperty(value = "负责人id")
    @NotNull(message = "负责人id不能為空")
    private Integer mainPersonId;

    @ApiModelProperty(value = "协作人id")
    private Integer corPersonId;

    @ApiModelProperty(value = "频次")
    @NotNull(message = "频次不能為空")
    private Integer frequency;

    @ApiModelProperty(value = "类型")
    @NotNull(message = "类型不能為空")
    private String type;

    @ApiModelProperty(value = "是否停用")
    @NotNull(message = "是否停用不能為空")
    private Integer isOff;

    @ApiModelProperty(value = "备注")
    private String note;
}
